package com.example.design.adapter.voltage.v1object;

/**
 * @Description 电压转换,对象适配器模式
 * @ClassName AdapterObjectTest
 * @Author Administrator
 * @Date 2020/5/13 12:33
 * @Version 1.0.0
 */
public class AdapterObjectTest {

    public static void main(String[] args) {
        IAdaptee adaptee = new Adaptee();
        adaptee = new Adaptee1();
        Target target = new Adapter(adaptee);
        target.output5V();
//        System.out.println(target.output5V());
    }
}
